package org.example.string;

public class StringReplaceEmp {
    public static void main(String[] args) {
        String str="Hello World";
        System.out.println(str.replace('H','W'));
        System.out.println(str.replace("He","Wa"));
        System.out.println(str.replaceFirst("He","Ha"));
    }
}
